package it.text;

public class text04 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,6};
        int[] opp = oppsiteInt(arr);
        for (int i = 0; i < opp.length; i++) {
            System.out.println(opp[i]);
        }
    }
    public static int[] oppsiteInt(int[] oppsite){
        int op=-1;
        for (int i = 0; i < oppsite.length/2; i++) {
            op=oppsite[i];
            oppsite[i]=oppsite[oppsite.length-1-i];
            oppsite[oppsite.length-i-1]=op;
        }

        return oppsite;
    }



//    public static int[] arrCheck(int[] arr1,int n) {
//        int j=0;
//        for (int i = 0; i < arr1.length; i++) {
//            if (arr1[i] == n)
//            {
//                j++;
//
//            }
//        }
//
//
//
//    }
}
